<!DOCTYPE html>
<html class="">
  
  <head>
    <title>口伶二加一</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="initial-scale=1.0,user-scalable=no,minimum-scale=1.0, maximum-scale=1.0,width=device-width">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta http-equiv="x-dns-prefetch-control" content="on">
	<meta name="referrer" content="no-referrer" />
    <script src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/clipboard.js/2.0.4/clipboard.min.js"></script>
    <style type="text/css">body { background: #eee; font-size: 14px; } .scenograph { padding: 16px 16px 0; text-align: center;} .drugsword { margin: 14px; margin-top: 16px; text-align: center; } .medicine-bag { background: white; border: 1px dashed #fb6a65; padding: .5rem; border-radius: 5px; } .icopy { background: #fb6a65; border-radius: 5px; color: white; font-size: 14px; margin: 16px auto; padding: 10px; margin-bottom: 2px; } .nomen-proprium { font-size: 12px; text-align: left; color: #fb6a65; } </style></head>
  
  <body>
	<div class="drugsword">
      <div class="medicine-bag">
        <div>
          <div id="nomen-proprium" class="nomen-proprium">
            <span id="np2"></span></div>
        </div>
      </div>
    </div>
	<div class="drugsword">
	  <div type="button" data-clipboard-text="" class="icopy" id="icopy">第一步（只领券不下单）</div>
	</div>
	<div class="drugsword">
	  <div type="button" data-clipboard-text="" class="icopy" id="icopy3">第二步（浏览45秒得签到红包）</div>
	</div>
    <div class="drugsword">
      <div type="button" data-clipboard-text="" class="icopy" id="icopy2">第三步（复制商品标题到签到页面搜索下单）</div>
    </div>
	
	<div class="scenograph">
		<img id="type-bimg" src="" style="max-width:99%;">
	</div>
	<div class="scenograph">
    <video src="https://img.bc.haodanku.com/file/9fc4fb382039d0fa82e565e996a15569.mp4" poster="https://img.bc.haodanku.com/cms/1651816484" controls="controls" style="margin-top: 0.3rem; width: 100%;"></video>
	</div>
	
	
	
    <script>
	function getQueryVariable(variable) {
        var query = decodeURIComponent(window.location.search.substring(1));
        var vars = query.split("&");
        for (var i = 0; i < vars.length; i++) {
          var pair = vars[i].split("=");
          if (pair[0] == variable) {
            return unescape(pair[1]);
          }
        }
        return (false);
      }
      //复制文本
      var clipboard = new ClipboardJS('#icopy');
      clipboard.on('success',
      function(e) {
        if (e.trigger.disabled == false || e.trigger.disabled == undefined) {
          e.trigger.innerHTML = "复制成功";
          e.trigger.style.backgroundColor = "#78bd33";
          e.trigger.disabled = true;
          setTimeout(function() {
            e.trigger.innerHTML = "第一步（只领券不下单）";
            e.trigger.style.backgroundColor = "#fb6a65";
            e.trigger.disabled = false;
          },
          1000);
        }
      });
      clipboard.on('error',
      function(e) {
        e.trigger.innerHTML = "复制失败,请手动复制";
        e.trigger.style.backgroundColor = "#b5b4b4";
      });

      $(function() {
        var np = getQueryVariable("word");
        np = "1￥" + np + "￥/";
        $("#icopy").attr("data-clipboard-text", np);
		
		var np3 = getQueryVariable("tkftkl");
		if(np3.length == 12){
			np3 = np3.substr(0,np3.length-1)
			np3 = "1￥" + np3 + "￥/";
		}
        $("#icopy3").attr("data-clipboard-text", np3);
      });
      //复制文本
      var clipboard2 = new ClipboardJS('#icopy2');
      clipboard2.on('success',
      function(e) {
        if (e.trigger.disabled == false || e.trigger.disabled == undefined) {
          e.trigger.innerHTML = "复制成功";
          e.trigger.style.backgroundColor = "#78bd33";
          e.trigger.disabled = true;
          setTimeout(function() {
            e.trigger.innerHTML = "第三步（复制商品标题到签到页面搜索下单）";
            e.trigger.style.backgroundColor = "#fb6a65";
            e.trigger.disabled = false;
          },
          1000);
        }
      });
      clipboard2.on('error',
      function(e) {
        e.trigger.innerHTML = "复制失败,请手动复制";
        e.trigger.style.backgroundColor = "#b5b4b4";
      });
		
	 var clipboard3 = new ClipboardJS('#icopy3');
	  clipboard3.on('success',function(e) {
	  	e.trigger.innerHTML = "复制成功";
	  	e.trigger.style.backgroundColor = "#78bd33";
	  	setTimeout(function() {
            e.trigger.innerHTML = "第二步（浏览45秒得签到红包）";
            e.trigger.style.backgroundColor = "#fb6a65";
          },
          1000);
	  })
	  
      $(function() {
        var np = getQueryVariable("title");
        $("#icopy2").attr("data-clipboard-text", np);
        $("#np2").text(np);
        var old_pic = getQueryVariable("image");
        $("#type-bimg").attr('src', old_pic);
      });</script>
  </body>

</html>
